package com.hx.office.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;

/**
 * 员工个人信息对象 office_personal
 * 
 * @author lidelong
 * @date 2023-05-23
 */
public class Personal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long personalId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别  */
    @Excel(name = "性别 ")
    private Long gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private Long phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private Long identity;

    /** 学历 */
    @Excel(name = "学历")
    private String education;

    /** 毕业学校 */
    @Excel(name = "毕业学校")
    private String school;

    /** 工作状态 */
    @Excel(name = "工作状态")
    private Long workStatus;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 入职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginDate;

    public void setPersonalId(Long personalId) 
    {
        this.personalId = personalId;
    }

    public Long getPersonalId() 
    {
        return personalId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setPhone(Long phone) 
    {
        this.phone = phone;
    }

    public Long getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setIdentity(Long identity) 
    {
        this.identity = identity;
    }

    public Long getIdentity() 
    {
        return identity;
    }
    public void setEducation(String education) 
    {
        this.education = education;
    }

    public String getEducation() 
    {
        return education;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }
    public void setWorkStatus(Long workStatus) 
    {
        this.workStatus = workStatus;
    }

    public Long getWorkStatus() 
    {
        return workStatus;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setBeginDate(Date beginDate) 
    {
        this.beginDate = beginDate;
    }

    public Date getBeginDate() 
    {
        return beginDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("personalId", getPersonalId())
            .append("name", getName())
            .append("gender", getGender())
            .append("birthday", getBirthday())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("identity", getIdentity())
            .append("education", getEducation())
            .append("school", getSchool())
            .append("workStatus", getWorkStatus())
            .append("deptId", getDeptId())
            .append("beginDate", getBeginDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
